package cn.mulanbay.persistent.entity;

import cn.mulanbay.persistent.enums.LogLevel;
import cn.mulanbay.persistent.enums.MonitorBussType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *
 * @author fenghong
 * @create 2022-01-16 10:00
 */
@TableName("error_code_define")
public class ErrorCodeDefine implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "code", type = IdType.ASSIGN_ID)
    private Integer code;

    private String name;

    private LogLevel level;

    private Boolean notifiable;

    private Boolean realtimeNotify;

    private Boolean loggable;

    private String causes;

    private String solutions;

    private MonitorBussType bussType;

    private Integer count;

    private Integer limitPeriod;

    private String remark;

    private LocalDateTime createdTime;

    private LocalDateTime lastModifyTime;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public LogLevel getLevel() {
        return level;
    }

    public void setLevel(LogLevel level) {
        this.level = level;
    }
    public Boolean getNotifiable() {
        return notifiable;
    }

    public void setNotifiable(Boolean notifiable) {
        this.notifiable = notifiable;
    }
    public Boolean getRealtimeNotify() {
        return realtimeNotify;
    }

    public void setRealtimeNotify(Boolean realtimeNotify) {
        this.realtimeNotify = realtimeNotify;
    }
    public Boolean getLoggable() {
        return loggable;
    }

    public void setLoggable(Boolean loggable) {
        this.loggable = loggable;
    }
    public String getCauses() {
        return causes;
    }

    public void setCauses(String causes) {
        this.causes = causes;
    }
    public String getSolutions() {
        return solutions;
    }

    public void setSolutions(String solutions) {
        this.solutions = solutions;
    }
    public MonitorBussType getBussType() {
        return bussType;
    }

    public void setBussType(MonitorBussType bussType) {
        this.bussType = bussType;
    }
    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
    public Integer getLimitPeriod() {
        return limitPeriod;
    }

    public void setLimitPeriod(Integer limitPeriod) {
        this.limitPeriod = limitPeriod;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }
    public LocalDateTime getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(LocalDateTime lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    @Override
    public String toString() {
        return "ErrorCodeDefine{" +
            "code=" + code +
            ", name=" + name +
            ", level=" + level +
            ", notifiable=" + notifiable +
            ", realtimeNotify=" + realtimeNotify +
            ", loggable=" + loggable +
            ", causes=" + causes +
            ", solutions=" + solutions +
            ", bussType=" + bussType +
            ", count=" + count +
            ", limitPeriod=" + limitPeriod +
            ", remark=" + remark +
            ", createdTime=" + createdTime +
            ", lastModifyTime=" + lastModifyTime +
        "}";
    }
}
